package com.shxc.smarttrade.old.bean;

import java.util.List;

/**
 * Created by jcdev1 on 2017/11/10.
 */

public class AlphaPositionsBean extends ErrorStatus {

    /**
     * data : {"traderOrder":[{"symbolCn":"黄金","symbolEn":"XAUUSD200","cmd":1,"volume":0.01,"openPrice":1276.71,"closePrice":null,"market":1283.77,"lever":200,"profit":-9.2,"ticket":"4224903","contractSize":100,"profitChange":false,"profitUSDPrex":false,"profitCalCurrency":"USD","bid":1283.77,"ask":1284.13,"occupyAsset":5,"marginRate":1,"margin":5,"tp":0,"sl":0,"openTime":"2017-11-03 11:49:47","swaps":0,"commission":0,"stopsLevel":150,"multiply":100,"digits":2,"profitCurrency":"USD","profitRate":null,"isCopy":0,"username":null,"userCode":null},{"symbolCn":"黄金","symbolEn":"XAUUSD200","cmd":1,"volume":0.01,"openPrice":1276.52,"closePrice":null,"market":1283.77,"lever":200,"profit":-9.39,"ticket":"4224902","contractSize":100,"profitChange":false,"profitUSDPrex":false,"profitCalCurrency":"USD","bid":1283.77,"ask":1284.13,"occupyAsset":5,"marginRate":1,"margin":5,"tp":0,"sl":0,"openTime":"2017-11-03 11:43:08","swaps":0,"commission":0,"stopsLevel":150,"multiply":100,"digits":2,"profitCurrency":"USD","profitRate":null,"isCopy":0,"username":null,"userCode":null},{"symbolCn":"澳元加元","symbolEn":"AUDCAD","cmd":0,"volume":0.01,"openPrice":0.98514,"closePrice":null,"market":0.97339,"lever":100,"profit":-9.1,"ticket":"4224901","contractSize":100000,"profitChange":true,"profitUSDPrex":true,"profitCalCurrency":"USDCAD","bid":0.97339,"ask":0.97367,"occupyAsset":10,"marginRate":1,"margin":10,"tp":0,"sl":0,"openTime":"2017-11-03 11:40:30","swaps":0,"commission":0,"stopsLevel":100,"multiply":100000,"digits":5,"profitCurrency":"USDCAD","profitRate":null,"isCopy":0,"username":null,"userCode":null},{"symbolCn":"黄金","symbolEn":"XAUUSD200","cmd":1,"volume":0.01,"openPrice":1276.53,"closePrice":null,"market":1283.77,"lever":200,"profit":-9.38,"ticket":"4224900","contractSize":100,"profitChange":false,"profitUSDPrex":false,"profitCalCurrency":"USD","bid":1283.77,"ask":1284.13,"occupyAsset":5,"marginRate":1,"margin":5,"tp":0,"sl":0,"openTime":"2017-11-03 11:36:58","swaps":0,"commission":0,"stopsLevel":150,"multiply":100,"digits":2,"profitCurrency":"USD","profitRate":null,"isCopy":0,"username":null,"userCode":null},{"symbolCn":"黄金","symbolEn":"XAUUSD","cmd":1,"volume":0.01,"openPrice":1278.76,"closePrice":null,"market":1283.77,"lever":100,"profit":-7.15,"ticket":"4224461","contractSize":100,"profitChange":false,"profitUSDPrex":false,"profitCalCurrency":"USD","bid":1283.77,"ask":1284.13,"occupyAsset":10,"marginRate":1,"margin":10,"tp":0,"sl":0,"openTime":"2017-11-01 17:47:58","swaps":0,"commission":0,"stopsLevel":150,"multiply":100,"digits":2,"profitCurrency":"USD","profitRate":null,"isCopy":0,"username":null,"userCode":null},{"symbolCn":"澳元加元","symbolEn":"AUDCAD","cmd":1,"volume":0.01,"openPrice":0.98949,"closePrice":null,"market":0.97339,"lever":100,"profit":12.31,"ticket":"4224460","contractSize":100000,"profitChange":true,"profitUSDPrex":true,"profitCalCurrency":"USDCAD","bid":0.97339,"ask":0.97367,"occupyAsset":10,"marginRate":1,"margin":10,"tp":0,"sl":0,"openTime":"2017-11-01 17:47:30","swaps":0,"commission":0,"stopsLevel":100,"multiply":100000,"digits":5,"profitCurrency":"USDCAD","profitRate":null,"isCopy":0,"username":null,"userCode":null}]}
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private List<TraderOrderBean> traderOrder;

        public List<TraderOrderBean> getTraderOrder() {
            return traderOrder;
        }

        public void setTraderOrder(List<TraderOrderBean> traderOrder) {
            this.traderOrder = traderOrder;
        }

        public static class TraderOrderBean {
            /**
             * symbolCn : 黄金
             * symbolEn : XAUUSD200
             * cmd : 1
             * volume : 0.01
             * openPrice : 1276.71
             * closePrice : null
             * market : 1283.77
             * lever : 200
             * profit : -9.2
             * ticket : 4224903
             * contractSize : 100.0
             * profitChange : false
             * profitUSDPrex : false
             * profitCalCurrency : USD
             * bid : 1283.77
             * ask : 1284.13
             * occupyAsset : 5.0
             * marginRate : 1.0
             * margin : 5.0
             * tp : 0.0
             * sl : 0.0
             * openTime : 2017-11-03 11:49:47
             * swaps : 0
             * commission : 0.0
             * stopsLevel : 150
             * multiply : 100
             * digits : 2
             * profitCurrency : USD
             * profitRate : null
             * isCopy : 0
             * username : null
             * userCode : null
             */

            private String symbolCn;
            private String symbolEn;
            private int cmd;
            private double volume;
            private double openPrice;
            private double closePrice;
            private double market;
            private int lever;
            private double profit;
            private String ticket;
            private double contractSize;
            private boolean profitChange;
            private boolean profitUSDPrex;
            private String profitCalCurrency;
            private double bid;
            private double ask;
            private double occupyAsset;
            private double marginRate;
            private double margin;
            private double tp;
            private double sl;
            private String openTime;
            private double swaps;
            private double commission;
            private int stopsLevel;
            private int multiply;
            private int digits;
            private String profitCurrency;
            private Object profitRate;
            private int isCopy;
            private Object username;
            private Object userCode;

            public String getSymbolCn() {
                return symbolCn;
            }

            public void setSymbolCn(String symbolCn) {
                this.symbolCn = symbolCn;
            }

            public String getSymbolEn() {
                return symbolEn;
            }

            public void setSymbolEn(String symbolEn) {
                this.symbolEn = symbolEn;
            }

            public int getCmd() {
                return cmd;
            }

            public void setCmd(int cmd) {
                this.cmd = cmd;
            }

            public double getVolume() {
                return volume;
            }

            public void setVolume(double volume) {
                this.volume = volume;
            }

            public double getOpenPrice() {
                return openPrice;
            }

            public void setOpenPrice(double openPrice) {
                this.openPrice = openPrice;
            }

            public double getClosePrice() {
                return closePrice;
            }

            public void setClosePrice(double closePrice) {
                this.closePrice = closePrice;
            }

            public double getMarket() {
                return market;
            }

            public void setMarket(double market) {
                this.market = market;
            }

            public int getLever() {
                return lever;
            }

            public void setLever(int lever) {
                this.lever = lever;
            }

            public double getProfit() {
                return profit;
            }

            public void setProfit(double profit) {
                this.profit = profit;
            }

            public String getTicket() {
                return ticket;
            }

            public void setTicket(String ticket) {
                this.ticket = ticket;
            }

            public double getContractSize() {
                return contractSize;
            }

            public void setContractSize(double contractSize) {
                this.contractSize = contractSize;
            }

            public boolean isProfitChange() {
                return profitChange;
            }

            public void setProfitChange(boolean profitChange) {
                this.profitChange = profitChange;
            }

            public boolean isProfitUSDPrex() {
                return profitUSDPrex;
            }

            public void setProfitUSDPrex(boolean profitUSDPrex) {
                this.profitUSDPrex = profitUSDPrex;
            }

            public String getProfitCalCurrency() {
                return profitCalCurrency;
            }

            public void setProfitCalCurrency(String profitCalCurrency) {
                this.profitCalCurrency = profitCalCurrency;
            }

            public double getBid() {
                return bid;
            }

            public void setBid(double bid) {
                this.bid = bid;
            }

            public double getAsk() {
                return ask;
            }

            public void setAsk(double ask) {
                this.ask = ask;
            }

            public double getOccupyAsset() {
                return occupyAsset;
            }

            public void setOccupyAsset(double occupyAsset) {
                this.occupyAsset = occupyAsset;
            }

            public double getMarginRate() {
                return marginRate;
            }

            public void setMarginRate(double marginRate) {
                this.marginRate = marginRate;
            }

            public double getMargin() {
                return margin;
            }

            public void setMargin(double margin) {
                this.margin = margin;
            }

            public double getTp() {
                return tp;
            }

            public void setTp(double tp) {
                this.tp = tp;
            }

            public double getSl() {
                return sl;
            }

            public void setSl(double sl) {
                this.sl = sl;
            }

            public String getOpenTime() {
                return openTime;
            }

            public void setOpenTime(String openTime) {
                this.openTime = openTime;
            }

            public double getSwaps() {
                return swaps;
            }

            public void setSwaps(double swaps) {
                this.swaps = swaps;
            }

            public double getCommission() {
                return commission;
            }

            public void setCommission(double commission) {
                this.commission = commission;
            }

            public int getStopsLevel() {
                return stopsLevel;
            }

            public void setStopsLevel(int stopsLevel) {
                this.stopsLevel = stopsLevel;
            }

            public int getMultiply() {
                return multiply;
            }

            public void setMultiply(int multiply) {
                this.multiply = multiply;
            }

            public int getDigits() {
                return digits;
            }

            public void setDigits(int digits) {
                this.digits = digits;
            }

            public String getProfitCurrency() {
                return profitCurrency;
            }

            public void setProfitCurrency(String profitCurrency) {
                this.profitCurrency = profitCurrency;
            }

            public Object getProfitRate() {
                return profitRate;
            }

            public void setProfitRate(Object profitRate) {
                this.profitRate = profitRate;
            }

            public int getIsCopy() {
                return isCopy;
            }

            public void setIsCopy(int isCopy) {
                this.isCopy = isCopy;
            }

            public Object getUsername() {
                return username;
            }

            public void setUsername(Object username) {
                this.username = username;
            }

            public Object getUserCode() {
                return userCode;
            }

            public void setUserCode(Object userCode) {
                this.userCode = userCode;
            }
        }
    }
}
